<?php /* Smarty version 2.6.26, created on 2018-07-20 02:55:11
         compiled from E:%5CWWW%5C40.125.208.171%5Cvweb/admin%5Ctemplates/admin/index.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div class="nav"><span>用户管理</span></div> 
<div class="explain">
	<div class="name"><span>操作提示</span></div>
	<div class="con">
		<p>编号为1的为创建者的编号，为最高权限，可以对程序的全部功能进行操作，其他操作需自行设置。</p>
	</div> 
</div>
<div class="filter"> 
	<?php if ($_SESSION['admin']['aid'] == '1'): ?>
		<a href="?m=admin&a=edit" class="add">添加用户</a>
	<?php endif; ?>
</div>
<div class="main"> 
	<table class="ltable">
	  	<thead>
		  	<tr>
				<th width="70">编号</th> 
				<th width="120">用户</th>
				<th width="200">邮箱</th>
				<th width="120">权限</th> 
				<th width="70">状态</th> 
				<th width="130">操作</th>
				<th width="110">最后登陆时间</th>
				<th></th>
		  	</tr>
	  	</thead>
		<tbody>
		<?php if ($this->_tpl_vars['data']): ?>
			<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
				<tr>
					<td><?php echo $this->_tpl_vars['i']['aid']; ?>
</td> 
					<td><?php echo $this->_tpl_vars['i']['username']; ?>
</td>
					<td><?php echo $this->_tpl_vars['i']['email']; ?>
</td>
					<td><?php echo $this->_tpl_vars['i']['power_cn']; ?>
</td>
					<td><?php if ($this->_tpl_vars['i']['status']): ?>正常<?php else: ?>停用<?php endif; ?></td>
					<td>
						<a href="?m=admin&a=edit&aid=<?php echo $this->_tpl_vars['i']['aid']; ?>
" class="edit">编辑</a>
						<?php if ($this->_tpl_vars['i']['aid'] != '1'): ?>
							<a href="javascript:;" data-id="<?php echo $this->_tpl_vars['i']['aid']; ?>
" class="edit">删除</a>
						<?php endif; ?>
					</td>
					<td><?php echo $this->_tpl_vars['i']['addtime']; ?>
</td>
					<td></td>
				</tr>
			<?php endforeach; endif; unset($_from); ?>
		<?php else: ?>
			<tr><td colspan="8">还没有数据</td></tr>
		<?php endif; ?>
		</tbody> 
	</table>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<script type="text/javascript">
_delete('?m=admin&a=del');
</script>